﻿using System;
using System.Web.UI;

namespace CustomerContactSystem.WebForms.SubMenus
{
    public partial class EnquiriesMenu : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MyEnquiriesLink.Visible = false;
            var parent = (BasePage)Page;
            if (parent.LoggedUser != null) {
                MyEnquiriesLink.Visible = true;
                MyEnquiriesLink.NavigateUrl = "~/Enquiries/Search.aspx?ert=" + parent.LoggedUser.Id;
            }
        }
    }
}